package db;

import entity.Phone;

import java.util.ArrayList;
import java.util.List;

//模拟手机数据库操作
public class PhoneDB {

    //购物车
    private static List<Phone> PhoneDB = new ArrayList<Phone>();

    static {
        PhoneDB.add(new Phone(1, "苹果","XR",4600));
        PhoneDB.add(new Phone(2, "华为","12pro",4200));
        PhoneDB.add(new Phone(3, "小米","18max",3600));
    }

    public static List<Phone> getAll(){
        return PhoneDB;
    }

}
